<?
	/*
	 * @since 2012.03.27
	 * @author Charles Koh
	 * @returns {Register page 1}
	 */
	$email = $_POST['email_id']."@".$_POST['email_host'];
?>
<html>
<head>
	<link rel="stylesheet" href="../../css/common.css"/>
	<script type="text/javascript" src="../../js/common.js"></script>
	<script>
	function check_agree(agree) {
		document.step_2_sponsor.email_verify.disabled = !agree;
	}
	function verify_email(){
		ajax.request({
			url:"verify_email.php",
			data:"email=" + "<?echo $email;?>",
			type:"GET",
			dataType:"json"
		});
	}

	</script>
</head>

<body>
	<!--Step 3-->
	<div id="reg_step_3">
		<b>Register</b><br/><br/>
		<span>3 Step: agreeemnt</span><br/><br/>
		<form name="step_2_sponsor" action="register_form_4.php" method="POST">
		<table border=0 cellspacing=0 cellpadding=0 align=center width="682" >
			<tr><td><div style="word-break:break-all; height:300px; overflow-y:scroll; border: 1px solid #333;"> User Agreement ...</div></td></tr>
			<tr><td align="center"><input type="radio" name="agree" value="true" onclick="check_agree(true)"> Agree</td></tr>
			<tr><td align="center"><input type="radio" name="agree" value="false" onclick="check_agree(false)"> Not Agree</td></tr>
			<tr>
				<td>
					<input type="button" name="email_verify" value="E-mail Verification" onclick="verify_email()" disabled="true"/>
					<input type="button" name="email_verify_cancel" value="Cancel" onclick="javascript:window.location='login_form.php';"/>
				</td>
			</tr>
		</table>
		</form>
	</div><!--Step 3-->
  </body>
</html>